SUPPORT / SAMPLES & SAS NOTES
 

Support

Problem Note 68909: The SAS® Environment Manager Configuration step of the Load Content stage fails with "…Failed To create ev initial User and Role…"

DetailsHotfixAboutRate It

SAS® Deployment Wizard might fail during the Load Content stage of the configuration process at the SAS Environment Manager Configuration step with a "java.lang.Exception: Failed To create ev initial User and Role" error message. An example of the message is shown here:

error message

The vfabrchyperc_loadContent log, which is listed in the error message, contains a message that is similar to the following:

2022-02-09 13:54:48,911 [main] INFO  com.sas.appserver.utils.AntProcessInvoker - Working Directory: /sas/config/Lev1/Web/SASEnvironmentManager/server-5.8.0-EE/hqapi1-client-6.0.2/bin
     [exec] Error running command: An unexpected error occurred
     [exec] Result: 255

In addition, the SAS Environment Manager server.log file contains error messages that are similar to the following. This log file is located in SAS-configuration-directory/Lev1/Web/SASEnvironmentManager/server-5.8.0-EE/logs/:

09-02-2022 13:55:36,863 EST ERROR [main] [org.springframework.web.context.ContextLoader@331] Context initialization failed
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'dynamicGroupManagerImpl': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire field: private com.hyperic.hq.management.server.session.TimedDynamicGroupRecalculator com.hyperic.hq.management.server.session.DynamicGroupManagerImpl.recalculator; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'TimedDynamicGroupRecalculator' defined in URL [jar:file:/sas/config/Lev1/Web/SASEnvironmentManager/server-5.8.0-EE/hq-engine/hq-server/webapps/ROOT/WEB-INF/lib/hqee-server-5.8.0.jar!/com/hyperic/hq/management/server/session/TimedDynamicGroupRecalculator.class]: Instantiation of bean failed; nested exception is org.springframework.beans.BeanInstantiationException: Could not instantiate bean class [com.hyperic.hq.management.server.session.TimedDynamicGroupRecalculator]: Constructor threw exception; nested exception is java.lang.InstantiationError: org.quartz.JobDetail

This issue affects any SAS Software Depot with a 22w04 release. These errors indicate that the SAS Environment Manager server is not functioning correctly due to the presence of the quartz-2.3.2.jar file. When the server is not functioning, the hqapi.sh script that runs during the Load Content configuration step is failing to connect, which in turn causes the "Failed To create ev initial User and Role" error.

There is a workaround for this issue:

  1. Stop the SAS Environment Manager server:

       SAS-configuration-directory/Lev1/Web/SASEnvironmentManager/server-5.8.0-EE/bin/hq-server.sh stop
     
  2. Use the following command to access the lib directory:

       cd SAS-configuration-directory/Lev1/Web/SASEnvironmentManager/server-5.8.0-EE/hq-engine/hq-server/webapps/ROOT/WEB-INF/lib
     
  3. In the lib directory, locate the quartz-2.3.2.jar file and move the file outside of the SAS file structure.
     
  4. Restart the SAS Environment Manager server:

       SAS-configuration-directory/Lev1/Web/SASEnvironmentManager/server-5.8.0-EE/bin/hq-server.sh start
     
  5. Wait about 10 minutes and then select Retry in the "Failed To create ev initial User and Role" error message.
     

Click the Hot Fix tab in this note to access the hot fix for this issue.



Operating System and Release Information

Product FamilyProductSystemProduct ReleaseSAS Release
ReportedFixed*ReportedFixed*
SAS SystemSAS Environment Manager64-bit Enabled AIX2.5_M42.5_M59.4 TS1M79.4 TS1M8
64-bit Enabled Solaris2.5_M42.5_M59.4 TS1M79.4 TS1M8
HP-UX IPF2.5_M42.5_M59.4 TS1M79.4 TS1M8
Linux for x642.5_M42.5_M59.4 TS1M79.4 TS1M8
Solaris for x642.5_M42.5_M59.4 TS1M79.4 TS1M8
* For software releases that are not yet generally available, the Fixed Release is the software release in which the problem is planned to be fixed.